<template>
  <div class="dad">
      我是爸爸
      <button @click="go()">点</button>
      <hr>
      <Son :egz='msg' hhd="呵呵哒"/>
  </div>
</template>

<script>
// 引入子组件
import Son from "./Son.vue"
export default {
    name:"Dad",
    data () {
        return {
            msg:'么么哒'
        }
    },
    components: {
        Son,
    },
    methods: {
        go(){
            this.msg='萌萌哒'
        }
    }
}
</script>

<style>

</style>